
#include <stdio.h>
#include "stack_base_array.h"

int main()
{
	STACK *stack = stack_create(10);
	
	int i = 1;
	/*栈不满*/
	while(!stack_full(stack))
	{
		/*压栈*/
		stack_push(stack, i++);
	}
	/*栈非空*/
    while(!stack_empty(stack))
	{
		printf("%d\n", stack_pop(stack));
	}
	stack_destroy(stack);
	return 0;
}
